﻿//MyFileOper.h

#ifndef		MYFILEOPER_H_
#define		MYFILEOPER_H_
#pragma once
#include <QFile>
#include <QTextStream>
#include <QString>
class MyFileOper
{
public:
	MyFileOper(void);
	~MyFileOper(void);

bool WritePrivateProfileString_My(QString strSectionName, QString strKeyName, QString strValue, QString strFileName);
bool WritePrivateProfileString_Replace(QString strSectionName, QString strKeyName, QString strValue, QString strFileName);
int GetPrivateProfileString_My(QString strSectionName, QString strKeyName, QString strDefault, QString &pReturnedStr, QString strFileName);
int GetPrivateProfileString_My(QString strSectionName, QString strKeyName, QString strDefault, char * pReturnedValue, int size, QString strFileName);
int GetPrivateProfileStringList_My(QString strSectionName, QStringList &pReturnedStrLst, QString strFileName);
int StrCopy(QString source, char *dest, int size);
};

#endif